<template>
    <div class="app-container">
        <iframe :src="src" frameborder="0" style="width: 100%; height: 800px"></iframe>
        <el-button class="button" type="primary" @click="goBack">返回上页</el-button>
    </div>
</template>

<script>
import {getCbInfo} from '@/api/portay'
export default {
    data(){
        return {
            comInfo:{updateTime:{}},
            shtyxydm:undefined,
            src:'https://maifile.cn/pdf/d16448082959.pdf'
        }
    },
    created(){
        this.shtyxydm = this.$route.query.shtyxydm;
        getCbInfo({feilds:this.shtyxydm}).then(res=>{
            this.comInfo = res.data;
        })
    },
    methods:{
        //返回上一页
        goBack(){
            let comInfo = this.comInfo;
            this.$router.push({ path: '/portray1/companyMessage',query:{shtyxydm:comInfo.shtyxydm}}); 
        }
    }
}
</script>

<style scoped="scoped" lang="scss">
.app-container{
    padding: 24px;
    width: 100%;
    text-align: center;
}
</style>